completed ch 10

- implemented use of sessions