move codes to src directory