added pry repl for debugging
avoided division by zero
avoiding division by zero