Function practice and some loop stuff

dis be class stuff