added 'new' function to Planet_state.