Dot syntax of class methods