Nikah for limited period

What if someone is happily married but his wife is unable to have kids. He doesn't want to divorce his 1st wife but he wants to take a second wife only to have kids.