exercise 1, add code blocks to each function