implemented some of the calculations of the needed key features, \' still not sure if they are correct\'