Initialize model with an object