Move printing of data into separate class.