programs were implemented by Java