code duplication by example