Added classes and functions to compile class