added move constructor and move assignement operator to Ref