Learning Switch Implementation In Erlang.