This is a prototype for Problem 3