improved example in .h