Freedom, generally, is having an ability to act or change without constraint. A thing is "free" if it can change its state easily and is not constrained in its present state. In philosophy and religion, it is associated with having free will and being without undue or unjust constraints, or enslavement, and is an idea closely related to the concept of liberty. A person has the freedom to do things that will not, in theory or in practice, be prevented by other forces. Outside of the human realm, freedom generally does not have this political or psychological dimension. A rusty lock might be oiled so that the key has freedom to turn, undergrowth may be hacked away to give a newly planted sapling freedom to grow, or a mathematician may study an equation having many degrees of freedom. In mechanical engineering, "freedom" describes the number of independent motions that are allowed to a body or system, which is generally referred to as degrees of freedom."