Continuing to work out function

working out function