Basic implementation of a Main class.