Add specs and solutions for problems 4-10