changed p to print and added read