Changed get_bin() method to bin property