built squares 5-8 as methods returning nested arrays