Rename variables to better explain what they refer to. Introduce Application class