Moving field functions to its prototype
Moving fields parameters to prototype