Updated example to reflect constructor support