Add Main class.