organized methods to parse each input section now time to solve