Self Assessment on PieceWise Functions