Working calculator. Draft 1