Setting klass variables while parsing