add code for calculator project (before I lose it)