parser for educational purposes