The effect of passing a class is taking another one