improve session example