Assignment 2 - Philip 

Oops, I should have done case 0 | 1 here