How should I code my Quby replacement?

Results