fix LR(0) bug & add bonus hw