moving code to src dir