Refactored the add method to add new resources and implemented issue #47 (software compliant)