added comparison operators in BaseTask