fixed spelling and extracted PendingRequest into its own class