code to make figures in JSM slides