A barn is a building found on a farm . It is used for holding livestock, such as horses . It can also be used to hold grain or tools.