Create Programming assignment 2 code