Add main class.