simple code for ruby language studies