CS450 Problem 3(a)