commits homework 1 solution