Updated clock2 like clock1.
Added support for automatic dereferencing of pointers.
Added dynamic memory and a garbage collector.