Main loop is created

remove ValueIterator and make Rule responsible for its values