Quick attempt at Q12

This is being done without the ability to check the program.  Therefore it may be a little bit off.