ex12 a) and b)