Pyrax sample code