use array_tool::vec::*;
use my_package_peter_test::{Product, Category};
fn main() {
    let product1 = Product::new(
        1, 
        String::from("Laptop"), 
        999.99, 
        Category::Electronics
    );

    let product2 = Product::new(
        2, 
        String::from("Smartphone"), 
        100.00, 
        Category::Electronics
    );

    let product3 = Product::new(
        3, 
        String::from("Tablet"), 
        500.00, 
        Category::Electronics
    );

    let set1 = vec![&product1, &product2];
    let set2 = vec![&product1, &product3];

    let intersection = set1.intersect(set2);
    println!("Intersection of set1 and set2: {:?}", intersection);
}
