Wrote proxy class factory