shallow nesting. refactor to work with shallow nesting
add purchase functionality
Merge pull request #3 from lukemesiti/dev

shallow nesting and purchase functionality