changed value type from float to double to match book.h