Add class.
And fix load problem.
If you want to load file, use loadFromFile.