Updated Scan_reader to create objects