Server class completed. Using a hash instead of an array for Task.