made general code directory and put 1d, 2d in there