added constructors to objects