Gussied up problem 51 a bit.
Added Ruby solutions for #55 and #56