second assignment for real time data processing 1333186