Pass class name to constructor.