First commit of separated Polya code.