RE: Writing a subtype function