Rename price to variant in log statement
Named function
Move json to external file
A function to emit error and end in case of invalid input
Asserting error messages in spec