classical problem with two methods