create method for analyzing files