Lab 5 exercises