Finished programming question of the week 4