16. mandatory Java task in DAT101