the code from the cabinet office ruby app