homework from SoftUni course #1 Java Basics