initial version of lab 6