no longer taking app as a parameter in the constructor