add the programming homework 2