SoftUni Java homework