Drawing rectangles implemented