moved code to src directory