Fully implemented the Resources class