First version of Main. (To be updated once database and classes have been secured.)