assign9 has been added, should be done in java