added function parameters

added function calling and imported the calculations to the main
activity