Incapsulate fields in object