Expand sample ruby code