Introduction to Stochastic Processes Using R