Updated Ruby example