The two functions are written.