logic review in class