Using double class