- making a class

potentially has bug