Update trick-functions.cpp