compilation currently working. attempting to implement function definitions