Second excercise iplemented