Memory leak-fixed. More examples