Added method to split a code into an array of lines