Creating proxy for classes and injecting field values to objects.

Needs revisions for loops. May contain duplicate codes