added parser to ex48. This is part of Exercise 49