class code for session3