Changed beans to .class