Fixed user input bug in ch5 and added ch6 solution