basic R exercises