hw 7 added, sml code done