compiled and ran program A & B