Canvas

transferred functionality to canvas class