Getting error 'Serial' was not declared in this scope

Now that this problem is solved I have landed to new problem: Getting error cannot call member function