Added exception class ClassCastException.
Added @throws tag.
Updated class signature.

- Added "final" keyword to class.
- Changed visibility of constructor from "private" to "public".
- Added @throws tag.