Created a take away function using test-driven development and object oriented programming in Python.