added base classes PeEngine and PeApplication