Programs done in R language.