[WIP] add a method to find dependencies. See issue #19