simple dynamic problem