programming assigment 2 work