initial version of lab 4