Working prefix strategy example