maybe i'm missing something, but do you just want `extend PostsData` maybe instead of the `class << self` block?