do prog assignment 2