bad function name
started pseudocode for a use case