programming problems 6.