parser glade: implement as a class