Code from the research I did freshman year