Sobject refactor2

I created a class for mapping and attribute, so all the logic for them can be moved there.

what do you think?