problem 4 alternative solutions