implemented R6,R7