Data structure and file-reading class