implementing getCredits(silver,34), and refactoring to note, query classes