working ruby example