renamed parse class and added to main