Summary

Use the main function for:

Use callbacks for:

Use drawing: