learning loops in class, not yet with stabilization