Tasks from Java course