build measure learn cycle