testing a few exercises and how line search works