Adding canvas and logic