Calculator functionality complitely done, but need logic correction