solution to class lab