|Specsavers County Championship Division Two, Cheltenham, day two|
|Gloucestershire 255: Roderick 61, Miles 58; Quinn 7-76|
|Essex 333: Lawrence 127, Ten Doeschate 52; Shaw 4-72|
|Gloucestershire 5 pts, Essex 6 pts - Essex lead by 78 runs|
Dan Lawrence's 127 put Essex into a 78-run lead at the end of day two against Gloucestershire at Cheltenham.
Lawrence and Ryan ten Doeschate (52) helped the Division Two leaders to 333 all out in reply to the hosts' 255.
After Gloucestershire had added 37 runs to their overnight score, Josh Shaw removed Tom Westley and Ravi Bopara to leave the visitors 57-3 before lunch.
Lawrence survived the hat-trick ball and, although Shaw (4-72) struck twice more, Essex forged a handy advantage.
Teenager Lawrence, who celebrated his 19th birthday on Tuesday, reached his second Championship hundred of 2016 off 162 balls.
Earlier, Jamie Porter (3-67) had taken the home side's final two wickets, while Matt Quinn ended with figures of 7-76 after his fine display on day one.