A more complicated function to test