updated solution for part f