My messed up version of brainx in case I want to refer to any changes I made to it