Code from the two sessions