third assignment for real time data processing 640432