Updated Advanced Example