source code of 1000