added factory ruby example