code from the first session