nest resources to provide methods for nested hashes