Added anonymous type to class specialisation