Implementing from(instance) method