refactored. one test fails
added edit method to flyers. tests pass