2nd addition of code

h-file hierarchy implemented