Switched from parameterized classes <T> to real MainData.