The newsboy problem with multiple demand classes