Update the method 'process' to work with records instead of file.