fixed errors in class statements