refactoring moved code to favourite module. use agency for requests
error param in constructor