The history behind Whalley's most beautiful building