added separate examples for hard/softserial