Begin @implementation of calcWindow