started on solve method, fixed duplicate section method