Refactoring - move code to 'onlinejudge' package.