Canvas and main function added