Solution:
Steps on how to getting started with plugin developement
Step 1 – Create your file and let it be known as a plugin
Step 2 – Create the objects of your plugin
Step 3 – Adding your actions and filters
Step 4 – Adding settings/options to your plugin
Finish up your code
Reference: Writing a WordPress Plugin Using Classes