added last exercise will work on refactoring code