Rewriting file back into a class for easier access.