First submission

Transposed the example code, changed function to Solve(), added
comments.