week4: first four functions