Improved second exercise