lr3 first draft implementation