added assignment3 answer