turn code into a class because ti was making my eyes bleed