fixed a bug regarding the 7th function ; added an interesting 9th function which showcases 'repeat' loop