give gem a proper class
extract gem methods into gem class
add gemfile class