Tried testing the code in terminal