commit assignment 2 solution