adding working calculator and prototype for frame caculator