added new lines; improved sample