stack frame growth using sample procedures p and q