initial version of lab 3