parsing classes with functions and variables