made the class for home page

I made a class for the home page so that I can reuse the class when I
get ready to return data to the user