Solve P21... old homework :-(
Solve P22 and P23. Old homework :-(
Solve P24. Old homework :-(
Merge pull request #41 from ignasi35/master

P21 to P24