Implemented step 6, working with lists.