adding functions to Cup and Die objects