solved problems in class