Implement Math object.