Use simpler constructor in sample code