Added drawRect() method