Completed Programmin assignment2