Formatted code per proper ruby style guidelines