- updated solution for prob 81