Rough draft of code, written very quickly