initializer for model works