another way of lab2-1