Creates the main object