moved the class to the top of the file.