Solution for #7. Added lib for common code. Stub for #8
#8 solution
#9 solution
#10 solution
Added forgotten library for common code