adding solved versions of prior problems that were in jsfiddle