adding hard exercise to R programs