solution for morestuff exercise 1