addded nbviewer about loops