Implement method changeResourceBy

Addresses #26