added exercise 1 from mockexam