Add a class to store task properties.