Adding euler solutions in ruby