Class to hold objects