Solving ruby coding problems to brush up on ruby