First commit. Java code. Applications checks for unread emails