updated solns for ex2