> What do you think about following code?

Nice.