App setup and entities