complted program 3