some sample ruby scripting