Created a PiParser class