Some modification in program.cpp regarding Beq