added tipAmount and totalAmount, added all logic to make a working tip calculator