Adapt the priority function from above, it’s pretty similar in that it returns an integer through an argument.
priority