adding functions

Added functions to Parser class