Why are we using `$app` in this case? I am confused.