added constructors to rectangle