Completed some exercise1 problems.