Using singleton in Session example