implementing ruby standards pass 1