Add interface for algo class