wrote the begin function
fixed some print statements
made a nice test