added Cost $resource