Fixed issue with divide by zero. Created package interfaces