<s> from . board import Board <EOL> class MemoryBoard ( Board ) : <EOL> def __init__ ( self ) : <EOL> Board . __init__ ( self ) <EOL> self . _board = [ ] <EOL> def post_message ( self , message ) : <EOL> self . _board . append ( message ) <EOL> self . _board = sorted ( self . _board , <EOL> key = lambda a : a . timestamp , reverse = True ) <EOL> def get_message ( self ) : <EOL> if ( len ( self . _board ) > <NUM_LIT:0> ) : <EOL> return self . _board . pop ( ) <EOL> else : <EOL> return None </s>
