Completed the types and calls method code