Moved calculations out of paint method
Define: PROCEDURAL -> SERIAL