First part of lab2.