almost done with assignment3 but the cd command