adding method inline example