Just what I did in class