Issue #2
- layed the groundwork for error checking