moved code into src directory.