Small mistake. Chnaged bool to double