solution for morestuff exercise 5