Merged David's and Ryan's code, added images