Template for memory code along