Main class.