power's erlang study code