init reactive sample (based on sodium talk)