better syntax for exposing class