Implemented "calc" method