first version of find path solution