a bit simplified uva00750