added resource management class