 
 defmodule FibMemoOther do
   import DefMemo
-   
+
   defmemo fibs(0), do: "ZERO"
   defmemo fibs(1), do: "A NUMBER ONE"
   defmemo fibs(2), do: "A NUMBER TWO!!"


defmodule TimedFunction do
  def time(fun) do
    {start, return, stop} = {:erlang.now(), fun.(), :erlang.now()}
    {return, :timer.now_diff(stop, start) }
  end
end


defmodule FibMemo do
  import DefMemo

  defmemo fibs(0), do: 0
  defmemo fibs(1), do: 1
  defmemo fibs(n), do: fibs(n - 1) + fibs(n - 2)
