gin class extension