refactor #attach_reference_link. Use hash instead of Struct.new (#35)