i extracted the Rectangle object constructor into a separate file.