Adding shape cut function