exercise 1&2 from basics section