More Ruby

Finished 17, works.
Problem 6
Started problem 40

Not finished tho