something like this:
Its not thread-safe and leaks memory Try again