cs27x Asgn2 Solution