now with uppercase R extensiom; clean up the code (windows line endings); inline the library statement