Fill in these two functions.