added directories and some code