checking in design pattern lesson