a simple project for personal study,java