Finished problem 2. See Scope test