Abby's solution