Code stub for a p-Controller