rearranging code, adding slides