cuba4 source code