IO session typed in class