Fixed exercises 1 and 2, added exercise 3