first working version of lab2