implemented FileParser in try5.rb, much better ruby style than prev attempts implementing part of Div