solved 1-7 problems