doing ex17

just finished the one liner for ex17