solved probl. 20