use better interface in example