Added Green's code
Got rid of all my stupid attempts