ASSIGNMENT #4 Solution