removed write to file class