First correct running program without bad_alloc