Lab 10

Problem 2: Mid-way function construction and loop testing.