code for session 12 (being really 9)