Make Task a type class.