create class funtionality now finished