Implemented get_depends()

Implemented the get_depends() function.