Completed exrcise 3