Got R into the equation

Used an arrow right now
Tweaked the corner detector