Replace Verse class with a function