almost done with everything except simple code example