Extension and testing of listResources
start implementing allocate()