Refactor list movies into a method