added chat head and code for testing it out