second submission of assignment2