Define the interface for task