Fix the first issue and you fix the others. You have to put the imports at the very top of the code file. The only lines that can precede the imports are comments and Option settings. Once you fix that the import will be recognised and the other errors will disappear.