constructor that atkes one of each resource for res