Update Resource.swift