typing and syntax errors fixed, start use IDEA