Manual memory management

shape