Compile multiple function / classes into a single function