Here's my approach to this task. Not sure how to modify my code to pass the final test.