third verson of program