Create simple exmaple working with resource