added Rectangle class and added Rectangle attribute to Object