Implementing a method to detect a structure at a given structure