Pseudocode skeleton on session object