Creating seperate parser class