example periodic extension