https://123dok.org/document/q2n640dr-esercizio-in-r.html