Addded classes to calculate position of the pattern in space.