added example for resource library contracts