Projective threefolds with small class