video 36: updating code to use session