'solved' phase_4

phase_4 done the nasty way.