worked on calc functionality.