defined tasks for exercise 4