Used interfaces for input and output in Engine class