a simple but elegant method for dynamic attribures and methods