example codes for learning canvas