problems 16 and 17 added