Implemented v1 of rectangle plugin