Added RectangleMaster class