updated example for 3 coins