new syntax for defining resources part 2