Khan Academy filename parsing and datastructure