done implementing second task