Code from csc370: Database Systems