Extracted the Resource wrapper class