Completed my first version of angryChildren problem