Added R examples for Chapters 1-3