fix sample code: typo (move ctor signature)