counter v2.0
minimum func of student impelented