collecting calculator code