Compiles, but produces wrong result. Check memory ptrs