What is difference between an class and an namespace? You can put functions in both class and namespace?