Define an Algorithm for an Object