Stack, heap usage example