extend hearts class