Moved code to sources directory