Fixed an error in the code and changed the imports.