implemented getChild and remove in Directory