Added 2 methods to the class and updated the index to call them.