Added resource dependency
added Slug method
working with resource