Learning some ruby through Project Euler