added exercise 1 of hw 1