Implement the head and tail view