playing card collection ex lecture 7 stanford