made elements private and added getter and setter
made the client pick tasks from File.