second exercise of te course project