Created Algo class.