TUCSON, Ariz. (AP) — Jared Loughner listened calmly and without expression while a court-appointed psychologist told a judge he was competent to plead guilty to killing six people in a rampage that wounded then-Congresswoman Gabrielle Giffords.

Loughner's arms were crossed over his stomach, and he looked straight at Christina Pietz as she testified for an hour.

At one point he smiled and nodded when psychologist mentioned he had a special bond with one of the prison guards.

The judge agreed he was competent, and Loughner pleaded guilty in the attack.