myProgram for Assignment2