Function Practice and some loop stuff