added return values to function and started function to add supplies cost