The code explains very well itself, just take a look at some codes, you can download a rpg that is in version 2 and you can download it, can't remember the name sory.

Best Regards