Add sample with hooks