started on the functions, did first two.