Fixed duplication error
Finished first half of exercise