Set up preliminary tools for solving Problem 3