correcting and ruby example scetch