try to achieve the pascal.java