added factory reference to classCtrl