const std = @import("std");
const HashMap = @import("hash_map.zig").HashMap;

pub fn main() !void {
    var gpa = std.heap.GeneralPurposeAllocator(.{}){};
    defer _ = gpa.deinit();
    const allocator = gpa.allocator();
    
    var map = HashMap(i32).init(allocator);
    defer map.deinit();
    
    try map.put("apple", 10);
    try map.put("banana", 20);
    try map.put("cherry", 30);
    
    if (map.get("apple")) |value| {
        std.debug.print("Value for 'apple': {}\n", .{value});
    }
    
    std.debug.print("Size: {}\n", .{map.size()});
    
    _ = map.remove("banana");
    std.debug.print("Size after remove: {}\n", .{map.size()});
}