Add double calculator code