Finished applicationGetByCategory(string) function