Assignment 2 - Philip 

Very elegant. Even more so than  Ben's solution, one could argue.