Simplifyed class. Still got nex\prev bug.