Help checking the program and fix some syntax error