init class calc