Correct way of setting and copying properties

Solution is here.