started to write object class