- Corrected beggining to beginning .
- Re-indented code just to see how it looks.