Sample codes.