started reading functionality in main (2 lines)