Splits code into methods