Changing directory now implemented as extra credit.  Could stand to have a little refactoring.