Create a code structure to solve a test problem