initial version of lab 5