And what is the problem? Does it compile? Are there exceptions? Does it misbehave? Providing as much detail as possible will help you get more meaningful suggestions faster.