build simple beter API for classes