Rewrite parseNumber in do notation
Rewrote parseNumber with pure bind notation