Perform CountDownLatch.java, add some basic functions