added constructor to walker.cpp