encapsulate code in namespace