Change directory for code class.