changed sessions to classes