You are correct, kynguyen. "A software program was created for Mary" means that it was created for the benefit of Mary, or designed to her own personal specifications. It is unknown who created it. To indicate that, you must use the preposition "by": "A software program was created by Vivian for...