working on class object