Update MyRectangle.java

Class has been modified to extend Polygon, the bent arm has predefine shape, but I'll change this so that width and height manipulates it correctly. The bucket is currently a pentagon but I'll fix this as well.