Constructor receive a object