Fixed bracket style. Changed return value of main to void. Separated Task class implementation into a single file.