Added another version of exercise 4