Practicing how to write a function
concise introduction