taking out a class algo12 example