Most of calculate function implemented. Hex, Oct, Bin not yet implemented