Added a logic structure to files