minimalist DIP example