first version code completed