addRectangle method now works, can be tested in branch Justin3