solved q3.16