added problem 2.b, 3 and modified 1 to combine add,subtract and mul,div