added run method to Engine