Adding a main class for generic functions