Engine class : the main.