public void update()
 {
     remainingCount = filter.Filter(todos, new { completed = false }).Length;
     completedCount = todos.Length - remainingCount;
     allChecked     = remainingCount == 0;
     Storage.put(todos);
 }