Study code.  More psuedo code than anything.  Don't expect it to compile but easy to experiment and write out.