adding forloops
adding functions exercise