solutions for Data analysis with R