Broken implementation of parseInput
Proper implementation of parseInput
Tidy up parseInput test