Completed the tails example