solved probl. 21