metalmm:
Well I did try to replace the lcd.begin with lcd->begin with the same result, not the whole thing
you can certainly continue trying random cut/paste and eventually you will get it (1000 monkeys behind 1000 typewriters analogy).
Or, you can just start over and learn how a class is created and used.
Forget about creating a library, the .h and .cpp files until you have code that actually works, or you fully understand the use of the #include guards and how the library (literally) gets pasted into your .ino file.