add two function first it's readFromFile and second is readFromUrl