Pre-testing code
Tested and restructured functions for story