Use mixin to declare API