imrovements: - removed delay from the main thread; - added delete statements for array pointers; - replaced 'i' with 'counter' in the DisplayThread; - set duration counter to 30;