beginner functions during week1 and week 2