Added a constructor to Engine : we can pass values of engine and root