Define functions to open line above/below point