Completed custom setter/getter function. Codewars 6 kyu challenge.