beginn impl. of java reference classes