A note to self
Small refactoring
Implement reading until EOF
Write a test for reading until EOF
New challenge: error reporting