Lab 6 part 2 with proxy class design pattern