HW12 returned

My solution, is, as always, inelegant and poorly formatted.
BUT IT WORKS!!!! :)
YAY!