# Moving a shape

:::{card} ⚡ Live programming
1. Starting with the template
   - Getting rid of unnecessary parts
   - creating a new function for updating the shapes because `if(!WindowShouldClose())` is already two times indented which bloats the view.
1. Creating a shape struct
   - using a `typedef` or not
   - (creating a self-reference if not shown before)
1. Implementing a function that updates the ball for each frame
   - (Bouncing)
:::