WORKING. one function for printing in resultSetMaster added