heads&tails class