create resources object, 1st step to create relation between resource