Changed rectangle method to parallelogram method