Began to write java model