started lab 5 (copied lab 4 code initially)