working on object constructor.