Create self defined functions