I know how to write a function, but I'm not sure how I would go about it for this one. Help please.