defining puts line and bar methods