adds Object constructors in main