Made the 'puts' portion of Exercise 3