Class with multiple contexts