singe alloc is defined in header we should also offer the finalizer