Reading all input works, and data structures defined