chaged main to use Parser interface