classes were not public;  weights were incorrect