Finished Ex1 and Ex2