rearrange the code into sub-directories