adding pre-refactored tests passing for action 5

This is my pre-refactored code before I break anything else.