Add domain variable to class