committed as part of algorithms 1: 2nd programing challange