There was a thread when that pianist was on TV. There was a member whose daughter trained their chickens to do tricks. It's like training other animals/birds. Desired behaviour-reward. The little girl had the patience to work with the birds and they would give her the behaviours she had...