Completed.

initially I created 10 lines of code that completed the task, however it didn't really fit within the rules, so here is the "legit" version