Implementing cd, not tested yet