added subclass for Canvas.java
Merge pull request #19 from hogbait/subclassing_canvas

added subclass for Canvas.java