add simple pair implementation