I implemented calc method