added parametrized types and made chat room persistent WIP
added parametrized types