Program Assigment 2 version 1