Creating fileHandle class. Cleaning up code