code from class on thursday