Added manual memory management example. Needs comments.