R Solution. R - Stanford Engineering Everywhere