demonstrates a custom constructor function for a structure