Finished coins code (week 2)