How to build a FRAM model