change from all functions to methods on Handle and Example structs