Apply some of ruby coding guidelines