Added classes for data generating and reading from file.