Added another version of exercise 5