starting day9, calculating memory