add point logic to models and controllers