Added XController class