Lab 3 2/3 functions added