Use typedef for refering to Body and Joint pointers.