Programming Assignment2 passing