Definitions for "Accepted Answer kay here"
a simplified version with several edit functions