starter code for reading input, documentation