Just simple solutions I worked on from Ruby Cookbook