Update $ function in tutorial