functions 0.1 and 0.2 written except exercises