Used gc (Garbage Collector interface) to clean memory in garbage collector