Scientists use Lego to come up with simple answer to an expensive problem