Creating a Result class to manage the results functionality