updating File class because protoype was for console