#11 implemented writeClassName