Implemented drawRect: method