Statistical exercises using R