Update the code of Raty example