moved code inside src directory