add second part of lab#1