Create 8.cpp

Last instance of practical classes. Additional problems set from Test Problem Set 2.