Adding the code for the singleton pattern