Receive an object argument on constructor intead of separate arguments