finished Ex1&2