Ehh you're probably writing all your code in one class?
The guy in the video you're watching is probably using a Task based method of programming which involves using multiple classes and a method provider, he's called it client I guess. In every class he uses client.theMethod, for you just remove the .client before everything you're following.