ZER - Created a solution for up to 4 sides