completed mock object pattern task