Summary

Use the main function for:

Use call-backs for:

Use drawing: