formula class