Function of amyloid and amyloid protein precursor