program 6.10.osa2