Decent code for formed shapes