Added reading classes from a file.