For the algorithms class