complete first two task in ex6.