added canvas code example