moved code to src dir