add inline function practice