renamed loopsandifs
added program to demonstrate using blocks for transactional operations